package com.jp.knowledge.adapter.team_circle;


import android.content.Context;
import android.support.annotation.NonNull;

import com.jp.knowledge.R;
import com.jp.knowledge.my.base.RecycleVAdapter;
import com.jp.knowledge.my.base.RecycleVHolder;
import com.jp.knowledge.my.model.SearchResultModel;
import com.jp.knowledge.util.ImageLoadUtil;
import com.jp.knowledge.view.SquareImageView;

import java.util.List;

public class TeamCircleCompanySelectedAdapter extends RecycleVAdapter<SearchResultModel>{

    public TeamCircleCompanySelectedAdapter(Context context, @NonNull List<SearchResultModel> list) {
        super(context, list);
    }

    @Override
    public int getLayoutId(int viewType) {
        return R.layout.team_circle_item_praise;
    }

    @Override
    public void onBind(RecycleVHolder holder, int position) {
        SquareImageView imageView = (SquareImageView) holder.getImageView(R.id.team_circle_item_praise);
        ImageLoadUtil.load(mContext,
                mList.get(position).getIcon() + "?imageView2/2/w/50/interlace/1",
                imageView,
                R.mipmap.morentuchangfangxing
        );
    }
}
